package com.tc.dispatch.web.exception;
/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: ZJU </p>
 * @author DxFeng
 * @version 1.0
 */

public class WEBSysException extends RuntimeException
{

    public WEBSysException() { }

    public WEBSysException(String msg) { super(msg); }

    public WEBSysException(Throwable cause) { super(cause); }

    public WEBSysException(String msg, Throwable cause) { super(msg, cause); }

    static public void assertTrue(boolean b, String msg)
    {
        if (!b)
            throw new WEBSysException("Assertion failure:" + msg);
    }

    static public void assertTrue(boolean b)
    {
        if (!b)
            throw new WEBSysException("Assertion failure.");
    }

}





























